// 导入 mongoose 模块
const mongoose = require("mongoose");

// 设置文档结构模型
let userSchema = new mongoose.Schema({
  username: String,
  password: String,
});

// 创建文档结构对象
let userModel = mongoose.model("users",userSchema);

// 暴露模型对象
module.exports = userModel;
